package com.bright.repository;

import com.bright.entity.BookManage;
import com.bright.entity.BookType;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;

public interface RepostoryMapper {
    public int save(BookManage bookManage);

    public int update(BookManage bookManage);

    public int delete(int id);

    public List<BookManage> bookList();

    public BookManage bookById(int id);

    public BookManage bookByName(String name);

    public BookManage bookByNameAndType(@Param("name") String name, @Param("type") int type);

    public BookManage BookIdAndBookType(@Param("id") int id);

    public List<BookType> bookTypeList(@Param("id") int id);
}
